#ifndef SYMBOLTABLEWIDGET_H
#define SYMBOLTABLEWIDGET_H

#include <QWidget>
#include "syntax.h"

namespace Ui {
class SymbolTableWidget;
}

class SymbolTableWidget : public QWidget
{
    Q_OBJECT

public:
    explicit SymbolTableWidget(QWidget *parent = nullptr);
    ~SymbolTableWidget();
    void setSyntax(Syntax* syntax);
    void showTable();
    void addItem1(QString name,QString type,QString offset,QString pre_domain,QString cat);
    void addItem2(QString name1,QString offset1,QString size,QString structName);
    void addItem3(QString name,QString type2,QString len,QString low,QString up,QString offset2);
private:
    Ui::SymbolTableWidget *ui;
    Syntax* syntax;

};

#endif // SYMBOLTABLEWIDGET_H
